﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FluentNHibernate.Mapping;
using Nb.Tenants.Libs.Domains.Models;

namespace Nb.Tenants.Libs.Infrastructures
{
    public class TenantMap : ClassMap<Tenant>
    {
        public TenantMap()
        {
            Table("Lib_Tenants_Tenant");
            Id(x => x.Id).GeneratedBy.GuidComb();

            Map(x => x.Disabled);
            Map(x => x.CreateDate);
            Map(x => x.Name).Unique();
            Map(x => x.Description);
        }
    }
}
